/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.musictalk.model.business;

import com.musictalk.model.connect.ClientConnThread;
import java.util.HashMap;

/**
 *
 * @author AIDEN
 */
public class ManageClientConnThread {

    static private HashMap<String,ClientConnThread> clientMap = new HashMap<String,ClientConnThread>();

    static public void addClientThread(String UID,ClientConnThread thread){
        ManageClientConnThread.clientMap.put(UID, thread);
    }

    public static ClientConnThread getClientConnThread(String uID) {
        return (ClientConnThread)ManageClientConnThread.clientMap.get(uID);
    }

    public static void removeThread(String uID){
        ManageClientConnThread.clientMap.remove(uID);
    }
}
